/// bedNo : "B"
/// buildingId : 84
/// buildingNo : "01号楼"
/// checkInElderInfoBean : {"age":80,"birthday":"1941-06-05 00:00:00","branchNurseLevelName":null,"cardNo":"330102194106050317","customerId":8823,"customerName":null,"families":[{"familyCardNo":null,"mobile":"手机:17364567890","name":"江佩霞","relationshipId":166,"relationshipName":"其他"}],"headimageId":null,"intoDate":"2022-02-16 00:00:00","mobile":null,"sexName":"男"}
/// elderSex : null
/// elderSexName : null
/// flag : 1
/// floorId : 183
/// floorNo : "默认"
/// id : 3587
/// roomId : 2561
/// roomNo : "207"

class BedInfoData {
  BedInfoData({
      this.bedNo, 
      this.buildingId, 
      this.buildingNo, 
      this.checkInElderInfoBean, 
      this.elderSex, 
      this.elderSexName, 
      this.flag, 
      this.floorId, 
      this.floorNo, 
      this.id, 
      this.roomId, 
      this.roomNo,});

  BedInfoData.fromJson(dynamic json) {
    bedNo = json['bedNo'];
    buildingId = json['buildingId'];
    buildingNo = json['buildingNo'];
    checkInElderInfoBean = json['checkInElderInfoBean'] != null ? CheckInElderInfoBean.fromJson(json['checkInElderInfoBean']) : null;
    elderSex = json['elderSex'];
    elderSexName = json['elderSexName'];
    flag = json['flag'];
    floorId = json['floorId'];
    floorNo = json['floorNo'];
    id = json['id'];
    roomId = json['roomId'];
    roomNo = json['roomNo'];
  }
  String? bedNo;
  int? buildingId;
  String? buildingNo;
  CheckInElderInfoBean? checkInElderInfoBean;
  dynamic elderSex;
  dynamic elderSexName;
  int? flag;
  int? floorId;
  String? floorNo;
  int? id;
  int? roomId;
  String? roomNo;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['bedNo'] = bedNo;
    map['buildingId'] = buildingId;
    map['buildingNo'] = buildingNo;
    if (checkInElderInfoBean != null) {
      map['checkInElderInfoBean'] = checkInElderInfoBean?.toJson();
    }
    map['elderSex'] = elderSex;
    map['elderSexName'] = elderSexName;
    map['flag'] = flag;
    map['floorId'] = floorId;
    map['floorNo'] = floorNo;
    map['id'] = id;
    map['roomId'] = roomId;
    map['roomNo'] = roomNo;
    return map;
  }

}

/// age : 80
/// birthday : "1941-06-05 00:00:00"
/// branchNurseLevelName : null
/// cardNo : "330102194106050317"
/// customerId : 8823
/// customerName : null
/// families : [{"familyCardNo":null,"mobile":"手机:17364567890","name":"江佩霞","relationshipId":166,"relationshipName":"其他"}]
/// headimageId : null
/// intoDate : "2022-02-16 00:00:00"
/// mobile : null
/// sexName : "男"

class CheckInElderInfoBean {
  CheckInElderInfoBean({
      this.age, 
      this.birthday, 
      this.branchNurseLevelName, 
      this.cardNo, 
      this.customerId, 
      this.customerName, 
      this.families, 
      this.headimageId, 
      this.intoDate, 
      this.mobile, 
      this.sexName,});

  CheckInElderInfoBean.fromJson(dynamic json) {
    age = json['age'];
    birthday = json['birthday'];
    branchNurseLevelName = json['branchNurseLevelName'];
    cardNo = json['cardNo'];
    customerId = json['customerId'];
    customerName = json['customerName'];
    if (json['families'] != null) {
      families = [];
      json['families'].forEach((v) {
        families?.add(Families.fromJson(v));
      });
    }
    headimageId = json['headimageId'];
    intoDate = json['intoDate'];
    mobile = json['mobile'];
    sexName = json['sexName'];
  }
  int? age;
  String? birthday;
  dynamic branchNurseLevelName;
  String? cardNo;
  int? customerId;
  dynamic customerName;
  List<Families>? families;
  dynamic headimageId;
  String? intoDate;
  dynamic mobile;
  String? sexName;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['age'] = age;
    map['birthday'] = birthday;
    map['branchNurseLevelName'] = branchNurseLevelName;
    map['cardNo'] = cardNo;
    map['customerId'] = customerId;
    map['customerName'] = customerName;
    if (families != null) {
      map['families'] = families?.map((v) => v.toJson()).toList();
    }
    map['headimageId'] = headimageId;
    map['intoDate'] = intoDate;
    map['mobile'] = mobile;
    map['sexName'] = sexName;
    return map;
  }

}

/// familyCardNo : null
/// mobile : "手机:17364567890"
/// name : "江佩霞"
/// relationshipId : 166
/// relationshipName : "其他"

class Families {
  Families({
      this.familyCardNo, 
      this.mobile, 
      this.name, 
      this.relationshipId, 
      this.relationshipName,});

  Families.fromJson(dynamic json) {
    familyCardNo = json['familyCardNo'];
    mobile = json['mobile'];
    name = json['name'];
    relationshipId = json['relationshipId'];
    relationshipName = json['relationshipName'];
  }
  dynamic familyCardNo;
  String? mobile;
  String? name;
  int? relationshipId;
  String? relationshipName;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['familyCardNo'] = familyCardNo;
    map['mobile'] = mobile;
    map['name'] = name;
    map['relationshipId'] = relationshipId;
    map['relationshipName'] = relationshipName;
    return map;
  }

}